package com.zeroone.star.systemhome.service.impl.file;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zeroone.star.project.dto.systemhome.FileDTO;
import com.zeroone.star.project.vo.systemhome.FileStatisticsVO;
import com.zeroone.star.systemhome.entity.FileAttachment;
import com.zeroone.star.systemhome.mapper.file.FileMapper;
import com.zeroone.star.systemhome.service.file.FileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: oa-java
 * @BelongsPackage: com.zeroone.star.systemhome.service.impl.file
 * @Author: dashuai
 * @CreateTime: 2024-11-18  16:40
 * @Description: 文件接口的实现类
 * @Version: 1.0
 */
@Service
public class FileServiceImpl extends ServiceImpl<FileMapper, FileAttachment> implements FileService {
    @Resource
    private FileMapper fileMapper;
    @Override
    public List<FileDTO> listMyFile(String id) {
        return fileMapper.selectMyFile(id);
    }

    @Override
    public FileStatisticsVO countFile(String id) {
        return fileMapper.countFile(id);
    }
}
